Skip to content

Deduplicate RatingSummary, add aria-hidden to separator#800

Merged
realproject7 merged 1 commit intomainfrom
task/797-rating-summary-dedup
Apr 3, 2026
Merged

Deduplicate RatingSummary, add aria-hidden to separator#800
realproject7 merged 1 commit intomainfrom
task/797-rating-summary-dedup

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Adds optional separator prop to RatingSummary that renders a trailing dot when ratings exist
  • Deletes duplicate RatingSummaryWithSeparator component (was copy-pasting query + render logic)
  • Adds aria-hidden="true" to the decorative separator dot
  • Storyline page now uses <RatingSummary separator /> instead of the duplicate

Changes

  • src/components/RatingSummary.tsx — added separator prop, aria-hidden on dot
  • src/components/RatingSummaryWithSeparator.tsx — deleted
  • src/app/story/[storylineId]/page.tsx — updated import and usage

Test Plan

  • Storyline page with ratings: verify rating + dot + views display
  • Storyline page without ratings: verify no orphaned dot
  • No visual changes from current behavior

Fixes #797

🤖 Generated with Claude Code

Add optional `separator` prop to RatingSummary that renders a trailing
dot when ratings exist. Delete RatingSummaryWithSeparator duplicate.
Add aria-hidden="true" to the decorative separator dot.

Fixes #797

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 3, 2026 10:17am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR removes the duplicated rating query/render path by extending RatingSummary with an optional separator, and it adds aria-hidden="true" to the decorative dot. I did not find a code-level regression in the storyline header path.

Findings

  • No blocking findings.

Decision

Approving. This satisfies issue #797's single-source-of-truth and accessibility requirements without changing the no-ratings behavior.

@realproject7 realproject7 merged commit 38ec8f7 into main Apr 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Storyline header: RatingSummaryWithSeparator duplicates RatingSummary

2 participants